﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ces.Entity
{
    public class WorkShop
    {
        /// <summary>
        /// 车间id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 创建人，可以为空
        /// </summary>
        public string CreatedBy { get; set; }

        /// <summary>
        /// 创建时间，默认为当前系统时间
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人，可以为空
        /// </summary>
        public string UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间，默认为当前系统时间
        /// </summary>
        public DateTime UpdatedTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 车间编码
        /// </summary>
        public string Workshopcode { get; set; }

        /// <summary>
        /// 车间名称
        /// </summary>
        public string Workshopname { get; set; }

        /// <summary>
        /// 车间描述
        /// </summary>
        public string Workshopdescription { get; set; }

        /// <summary>
        /// 车间属性
        /// </summary>
        public string Workshopattributes { get; set; }
    }
    public class WorkShopDto
    {
        /// <summary>
        /// 提示信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public string  Code { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public List<WorkShop> Data { get; set; }
        
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
    }
}
